package com.hunteron.jdbc.bean;

import java.util.Arrays;

import org.apache.commons.lang.StringUtils;

public class SameWord {

	private String[] keyword = new String[0];
	
	public SameWord() {
		
	}

	public SameWord(String line) {
		if(StringUtils.isNotBlank(line)) {
			keyword = line.split(",");
		}
	}
	
	public boolean isValidate() {
		return keyword != null && keyword.length > 1;
	}

	public String[] getKeyword() {
		return keyword;
	}

	public void setKeyword(String[] keyword) {
		this.keyword = keyword;
	}

	@Override
	public String toString() {
		return "SameWord [keyword=" + Arrays.toString(keyword) + "]";
	}
	
}
